<?php
/**
 * Created by PhpStorm.
 * User: czm
 * Date: 2019/4/24
 * Time: 9:41
 */

namespace app\admin\controller;

use think\Controller;
use think\Db;
use app\admin\controller\Base;

class Index extends Base
{
    public function index()
    {
        $list = Db::name('admin')->order('id desc')->paginate();
//        $page = $list->render();
//        $this->assign('data',$page);
        $this->assign('data',$list);
        return $this->fetch();
    }

    public function welcome()
    {
        return $this->fetch();
    }
}